<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layuiAdmin 文章管理 iframe 框</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiAdmin-master/admin/std/dist/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/kindeditor-master/themes/default/default.css"/>
    <link rel="stylesheet" href="/static/kindeditor-master/plugins/code/prettify.css"/>
    <script charset="utf-8" src="/static/kindeditor-master/kindeditor-all.js"></script>
    <script charset="utf-8" src="/static/kindeditor-master/lang/zh-CN.js"></script>
    <script charset="utf-8" src="/static/kindeditor-master/plugins/code/prettify.js"></script>

    <script>
        var editor1;
        KindEditor.ready(function (K) {
            editor1 = K.create('textarea[name="content"]', {
                //参数配置
                readonlyMode : true, // 设置成只读
                width: '600%',
                height: '200',
                //是否允许浏览服务器已上传文件,默认是false
                allowFileManager: true,
                filePostName: "file",
                uploadJson: '/fileupload/uploadArticleImg', // 是富文本里面上传图片的接口
                minHeight: '600',
                resizeType: 0,//禁止拉伸，1可以上下拉伸，2上下左右拉伸
                filterMode: false,//true时过滤HTML代码，false时允许输入任何代码。
                itmes: [
                    'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
                    'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                    'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                    'superscript', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', '/',
                    'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                    'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat', '|', 'image', 'multiimage',
                    'flash', 'media', 'insertfile', 'table', 'hr', 'emoticons', 'baidumap', 'pagebreak',
                    'anchor', 'link', 'unlink', '|', 'about'
                ],
                }
            );
        });
    </script>
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"
     style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <div class="layui-col-sm3 layui-col-md3 layui-col-lg3 layui-col-md-offset1">
            <label class="layui-form-label">文章标题</label>
            <div class="layui-input-inline">
                <input type="text" name="title" lay-verify="required" placeholder="请输入标题" autocomplete="off"
                       class="layui-input" value="{{ article_title }}" readonly="true">
            </div>
        </div>
        <div class="layui-col-sm3 layui-col-md3 layui-col-lg3 layui-col-md-offset1">
            <label class="layui-form-label">文章作者</label>
            <div class="layui-input-inline">
                <input type="text" name="title" lay-verify="required" placeholder="请输入作者" autocomplete="off"
                       class="layui-input" value="{{ article_author }}" readonly="true">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-col-sm3 layui-col-md3 layui-col-lg3 layui-col-md-offset1">
            <label class="layui-form-label">发布时间</label>
            <div class="layui-input-inline">
                <input type="text" name="title" lay-verify="required" placeholder="请输入时间" autocomplete="off"
                       class="layui-input" value="{{ article_publish_time }}" readonly="true">
            </div>
        </div>
        <div class="layui-col-sm3 layui-col-md3 layui-col-lg3 layui-col-md-offset1">
            <label class="layui-form-label">所属分类</label>
            <div class="layui-input-inline">
                <input type="text" name="title" lay-verify="required" placeholder="请输入分类" autocomplete="off"
                       class="layui-input" value="{{ article_classify }}" readonly="true">
            </div>
        </div>
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
        <textarea id="editor_id" name="content" style="width:700px;height:300px;" autocomplete="off"
                  class="layui-textarea">{{ article_content }}</textarea>
    </div>
</div>

<script src="/static/layuiAdmin-master/admin/std/dist/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '../../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form', 'laydate'], function () {
        var laydate = layui.laydate;
        var $ = layui.$
            , admin = layui.admin
            , element = layui.element
            , form = layui.form;
    })
    ;

</script>
</body>
</html>
